package com.ocean.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 地区表
 * </p>
 *
 * @author zhang
 * @since 2022-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysArea implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Schema(description = "code")
    @TableId(value = "code", type = IdType.ASSIGN_ID)
    private String code;

    /**
     * 是否是父节点
     */
    private Integer isp;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 父id
     */
    @Schema(description = "父code")
    private String pcode;
}
